package com.unicom.office.type;

import com.unicom.office.var.ListVarItem;
import com.unicom.office.var.VarItem;

import java.util.ArrayList;
import java.util.List;

public class ListTypeItem extends DataTypeItem {
    private TypeItem itemType;

    public ListTypeItem(String name, TypeItem itemType) {
        super(name);
        this.itemType = itemType;
    }

    public TypeItem getItemType() {
        return itemType;
    }

    public VarItem createVarItem(String name) {
        return new ListVarItem(name, this);
    }
}
